<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="./Public/css/Place/place.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/css/ziku/ziku.css"/>
		<link rel="stylesheet" type="text/css" href="./Public/css/font-awesome-4.4.0/css/font-awesome.min.css"/>
		<script src="./Public/jquery-1.8.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/css/Place/place.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/css/Place/places.js" type="text/javascript" charset="utf-8"></script>
		<script src="./Public/css/Place/newress.js" type="text/javascript" charset="utf-8"></script>
	<!--插件城市联动-->
		<script src="./Public/css/Place/area.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
		$(function(){
			//初始化方法
			area.init('area');
			//修改的时候默认被选中效果
			area.selected('河南','濮阳','范县');
		})
	</script>
	</head>
	<body>
			<!--顶部灰色区开始-->
		<div id="zol">
			<div class="ding">
				<div class="zuo">
					<span class="shouye"><a href="<?php echo U('Index/index')?>">商城首页</a></span>
					<?php if(isset($_SESSION['home_name']) == null){?>
                
						<span class="denglu">Hi~欢迎来到ZOL商城，请<a href="<?php echo U('Denglu/index')?>">登录</a></span>
						<span class="zhuce"><a href="<?php echo U('Zhuce/index')?>">免费注册</a></span>
					<?php }else{?>
						<span class="denglu">Hi~欢迎<a href="<?php echo U('Personal/index')?>" style="color: red; font-size: 14px;"> <?php echo $_SESSION['home_name']?> </a>来到ZOL商城! </span>
						<span class="zhuce"><a href="<?php echo U('Index/dell')?>"> 退出</a></span>
					
               <?php }?>
				</div>
						
				<ul class="you">
					<li><a href="">联系客服</a><i class="fa fa-angle-down "></i></li>
					<li><a href="">商家入驻</a></li>
					<li><a href="">中关村在线</a></li>
					<li><a href=""><i class="fa fa-mobile fa-lg shouji"></i>手机商城</a><i class="fa fa-angle-down "></i></li>
					<li><a href="">帮助中心</a></li>
					<li>|</li>
					<li><a href="">购物车0件</a></li>
					<li class="maijia"><a href="">买家中心</a><i class="fa fa-angle-down "></i></li>
					<li><a href="">我的订单</a></li>	
				</ul>
			</div>		
		</div>		
	<!--顶部灰色区结束-->
	
	
	
	
	
	
<div id="xiadingdan">
	<div class="log">
		<a class="log_1" href=""></a>
		<a class="log_2" href=""></a>
	</div>
	<div class="xiadan">
		<ul class="xiadan_1">
			<li class="xiadan_2">加入购物车</li>
			<i class="ia"></i>
			<li class="xiadan_3">下订单</li>
			<i class="iai"></i>
			<li class="xiadan_4">去付款</li>
			<i class="iaii"></i>
			<li class="xiadan_4">确认收货</li>
		</ul>
	</div>
	
</div>
<div id="cuole">
	<div class="cuoll">
		<div class="cuo_1">
			<div class="zuo_z">收货人信息</div>
			<div class="you_y">
		<?php foreach ($ressModels as $v){?>
			<?php if($v['rdef']==1){?>
                
				<div class="you_y1">
					<div class="ttr">
						<input class="ssd dss" type="radio" name="2" id="tyt" ridss="<?php echo $v['rid']?>"/>
						<p><span><en style="color: red;">【默认】</en><?php echo $v['rname']?> </span> <?php echo $v['rrder']?> <?php echo $v['rphone']?></p>
					</div>
					<div class="rrt">
						<a href="javascript:if(confirm('确定删除吗？')) location.href='<?php echo U('del',array('rid'=>$v['rid']))?>';">删除</a>
						<a href="<?php echo U('edit',array('rid'=>$v['rid']))?>">编辑</a>
					</div>
				</div>
			<?php }else{?>
				<div class="you_y1">
					<div class="ttr">
						<input class="ssd dss" type="radio" name="2" id="tyt" rid="<?php echo $v['rid']?>"/>
						<p><span><?php echo $v['rname']?> </span> <?php echo $v['rrder']?> <?php echo $v['rphone']?></p>
					</div>
					<div class="rrt">
						<a href="javascript:if(confirm('确定删除吗？')) location.href='<?php echo U('del',array('rid'=>$v['rid']))?>';">删除</a>
						<a href="<?php echo U('edit',array('rid'=>$v['rid']))?>">编辑</a>
					</div>
				</div>
			
               <?php }?>
		<?php }?>
				<div class="you_y1" style="background: none;">
					<div class="ttr">
						<input class="ssd sds" type="radio" name="2" id="" />
						<p>添加新地址（最多可添加10个地址,您还可以添加9个地址）</p>
					</div>
				</div>
			</div>
			
		</div>
	</div>
</div>

<div id="shouhuo">
	<div class="shouhuo_f" id="ppost">
		<div class="shouhuo_1">
			<div class="shouhuo_2">
				<div class="shouhuo_3">
					<div class="shouhuo_4">收货人信息</div>
						<?php foreach ($ressModels as $v){?>
							<?php if($v['rdef']==1){?>
                
					<div class="shousss">
						<input class="ssda" type="radio" name="2" id="ppp" />
						<p class="ppa"><span><en style="color: red;">【默认】</en><?php echo $v['rname']?> </span> <?php echo $v['rrder']?> <?php echo $v['rphone']?></p>
					</div>
							
               <?php }?>
						<?php }?>
					<div class="shouhuo_x">
						<ul class="shouhuo_ul">
							<li class="shouhuo_li">
								<div class="li_1">
									<input class="dizhi" type="radio" name="2" id="" />添加新地址
								</div>
							<form action="<?php echo U('Place/addRess')?>" method="post" id="ptpss">
								<div class="li_2">
									<dl class="li_3">
										<dt class="souren"><em>*</em>收货人：</dt>
										<dd class="li_4">
											<input class="li_5" type="text" name="rname" id="" />
										</dd>
									</dl>
									<dl class="li_dl">
										<dt class="dl_dt"><em>*</em>所在地区：</dt>
						<!--调用插件城市联动-->
										<dd class="shengs">
											<select name="rrder1" id="area1">
		
											</select>
											<select name="rrder2" id="area2">
												
											</select>
											<select name="rrder3" id="area3">
												
											</select>
										</dd>
						<!--      !      -->	
									</dl>
									<dl class="li_3">
										<dt class="souren"><em>*</em>详细地址：</dt>
										<dd class="li_4">
											<input class="li_5 clc" type="text" name="rdata" id="" />
										</dd>
									</dl>
									<dl class="li_3">
										<dt class="souren"><em>*</em>手机号码：</dt>
										<dd class="li_4">
											<input class="li_5" type="text" name="rphone" id="" />
										</dd>
										<!--<dt class="souren huodian"><em>或</em>收货人电话</dt>
										<dd class="li_4 dsadada">
											<input class="li_5 qwer" type="text" name="rphone1" id="" />
										</dd>-->
										<!--<span class="shuyif">手机号码和固定电话请至少输入一个</span>-->
									</dl>
									<div class="shezhi">
										<!--设置默认地址  如果没点默认就走隐藏域  值也就是0  点了就走下面的  值为1-->
										<input type="hidden" name="rdef" value="0"/>
										<input class="morena" type="checkbox" name="rdef" id="" value="1"/>设置为默认地址
										
									</div>
									<input type="hidden" name="home_user_home_uid" value="$_SESSION['home_uid']"/>
									<input class="ques" type="submit" value="确认收货地址" />
								</div>
							</form>
							</li>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
	
	<div class="youyu">
		<span>由于您购买的商品是由不同的商家进行配送，因此需要分别结算以下订单</span>
	</div>
	
<form action="<?php echo U('Place/adds')?>" method="post">
		<!--地址id-->
		<input type="hidden" name="rid" value="" id="tj"/>
		<!--商品id-->
		<input type="hidden" name="gids" value="" id="t1122"/>
<?php foreach ($goodsss['cart']['goods'] as $k=>$v){?>
	<div class="shag" id="shasa">
		<div class="shag_1">
			<div class="shag_2">
				<div class="zuo">
					<div class="zuo_1">
						<input class="shang1" type="radio" name="1" id="" gid="<?php echo $k?>"/>商品订单
					</div>
				</div>
				<div class="you">
					<div class="you_1">
						<div class="you_q">
							<div class="q_1">
								<span class="shax">商品信息</span>
								<span class="sha_x">规格</span>
								<span class="sha_x">销售类型</span>
								<span class="sha_x">单价</span>
								<span class="sha_x">优惠</span>
								<span class="sha_x">数量</span>
								<span class="sha_x">总价</span>
							</div>
							<div class="sx">
								<div class="sx_1">
									<a class="t" href="">
										<?php foreach ($v['options'] as $kk=>$vv){?>
											<?php if($kk == 0){?>
                
												<img src="<?php echo $vv?>"/>
											
               <?php }?>
										<?php }?>
									</a>
									<h3 class="h3">
										<a href=""><?php echo $v['name']?></a>
									</h3>
								</div>
								<div class="gua16">
									<?php foreach ($v['options'] as $kk=>$vv){?>
										<?php if($kk != 0){?>
                
											<div><span class="guige"><?php echo $vv?></span></div>
										
               <?php }?>
									<?php }?>
								</div> 
								<div class="oo_o"><span>--</span></div>
								<div class="oo_o"><span class="qiage">￥<?php echo $v['price']?></span></div>
								<div class="oo_o" style="padding-left: 53px;">--</div>
								<div class="oo_o" style="padding-left: 28px;"><?php echo $v['num']?></div>
								<div class="oo_o" style="padding-left: 27px;"><span class="qqqq" value="<?php echo $v['total']?>"><?php echo $v['total']?></span></div>
							</div>
						</div>
						<div id="q111">
							<div class="q_1">
								<span class="q_2"> 
									店铺：
									<a class="" href="">长春新亚电脑专营店</a>
								</span>
								<a class="q_3" href=""><img class="q_11111" src="./Public/css/img/22222.png"/>z保障+</a>
								<a class="q_4" href=""><img class="q_22222" src="./Public/css/img/11111.png"/>消费者保障</a>
							</div>
							<div class="q_11">
								<div class="q_112">
									<select name="">
										<option value="">网上支付</option>
									</select>
									<span class="q_1121">支付方式：</span>
								</div>
							</div>
							<div class="q_11">
								<div class="q_112">
									<select name="">
										<option value="">顺丰包邮：0元</option>
									</select>
									<span class="q_1121">到 河南 濮阳市  配送方式：</span>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

<?php }?>		
		
		

	<div id="beizhu">
		<div class="beizhu_1">
			<div class="beizhu_01">订单备注</div>
			<div class="beizhu_02">
				<textarea class="neirong" name="onote" rows="" cols=""  placeholder="您可以填写对商品、配送的要求..." style="resize:none; text-indent: 1em;"></textarea>
				<span class="zishu">0/200</span>
			</div>
			<div class="beizhu_03">
				<ul class="bz_ul">
					<li class="bz_li">
						<span class="zongo">商品总价：</span>
						<em class="weo oi1">¥<?php echo $goodsss['cart']['total']?></em>
					</li>
					<li class="bz_li">
						<span class="zongo">运费：</span>
						<em class="weo">¥ 0</em>
					</li>
					<li class="bz_li">
						<span class="zongo">订单总计：</span>
						<em class="weo oi1 oi1">¥<?php echo $goodsss['cart']['total']?></em>
					</li>
				</ul>
			</div>
		</div>
	</div>




	<div class="tijiao" style="border: none;">
		<a class="ti_j" href="<?php echo U('Cart/index')?>">返回修改购物车</a>
		<input class="ti_b" type="submit" value="提交订单" />
	</div>

</form>

</div>
	
	
<div id="ding"></div>
	
	
	
	
	

	<!--底部开始-->
		<div id="dibu">
			<div class="dibu">
				<ul>
					<li><i class=" iconfont">&#xe60c;</i><a href="">行货保证</a></li>
					<li><i class=" tu iconfont">&#xe611;</i><a href="">发票保障</a></li>
					<li><i class=" tu iconfont">&#xe608;</i><a href="">24小时发货</a></li>
					<li><i class=" tu iconfont">&#xe612;</i><a href="">顺丰包邮</a></li>
					<li><i class=" tu iconfont">&#xe613;</i><a href="">无忧退换</a></li>
					<li><i class=" tu iconfont">&#xe610;</i><a href="">先行赔付</a></li>
				</ul>
				<div class="zhinan">
					<dl class="gouwu">
						<dt>购物指南</dt>
						<dd>
							<p><a href="">帐号注册</a></p>
							<p><a href="">帐号注册</a></p>
							<p><a href="">帐号注册</a></p>
						</dd>	
					</dl>
					<dl class="gouwu">
						<dt>购物指南</dt>
						<dd>
							<p><a href="">帐号注册</a></p>
							<p><a href="">帐号注册</a></p>
							<p><a href="">帐号注册</a></p>
						</dd>	
					</dl>
					<dl class="gouwu">
						<dt>购物指南</dt>
						<dd>
							<p><a href="">帐号注册</a></p>
							<p><a href="">帐号注册</a></p>
							<p><a href="">帐号注册</a></p>
						</dd>	
					</dl>
					<dl class="gouwu">
						<dt>购物指南</dt>
						<dd>
							<p><a href="">帐号注册</a></p>
							<p><a href="">帐号注册</a></p>
							<p><a href="">帐号注册</a></p>
						</dd>	
					</dl>
					<dl class="hezuo">
						<dt>商家合作</dt>
						<dd>
							<p>错过天猫？别再错过我们！</p>
							<p>ZOL商城开启全新旅程！</p>
							<a href="">关于入驻></a> 
						</dd>
					</dl>
					<dl class="guanzhu">
						<dt>400-678-0068</dt>
						<dd>
							<p>工作日 9:00 - 18:00</p>
							<a href="">关注新浪微博</a> 
						</dd>
					</dl>
				</div>
			</div>
			<div class="youqing">
				<div class="di">
					<div class="huoban">
						<div>
							<span>合作伙伴:</span>
							<p>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
								<a href="">挖东西比价网</a>
							</p>
						</div>
						<div class="zaixianl">
							<a href="">限时抢购</a>
							<a href="">限时抢购</a>
							<a href="">限时抢购</a>
							<a href="">限时抢购</a>
							<a href="">限时抢购</a>
							<a href="">限时抢购</a>
						</div>
						<div class="guanyul">
							<a href="">限时抢购</a>
							<a href="">限时抢购</a>
							<a href="">限时抢购</a>
							<a href="">限时抢购</a>
							<a href="">限时抢购</a>
							<a href="">限时抢购</a>
							<span class="span">©2015 中关村在线 版权所有. 京ICP备09041801号-182 京ICP证010391号</span>
						</div>
						<div class="xinyu">
							<img src="./Public/css/img/1.jpg"/>
							<img src="./Public/css/img/2.jpg"/>
							<img src="./Public/css/img/3.jpg"/>
						</div>
					</div>				
				</div>
			</div>
		</div>
	<!--底部结束-->	
		
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	</body>
</html>








